package rlex.classes.program;

import java.util.List;

/*
 * procedure
 * procedure
 */
public class ProcedureList {
	private List<Procedure> procedures;

	public List<Procedure> getProcedures() {
		return procedures;
	}

	public void setProcedures(List<Procedure> procedures) {
		this.procedures = procedures;
	}
	
	public String toString() {
		String ret = "";
		for (int i = 0; i < procedures.size(); i++) {
			ret += procedures.get(i).toString();
			ret += ",";
		}
		return ret;
	}
	
	public void display(int level) {
		System.out.print("PROCEDURES : ");
		for (int i = 0; i < procedures.size(); i++) {
			procedures.get(i).display(0);
			System.out.print(" , ");
		}
		System.out.print("\n");
	}
	
}
